package com.everbest.admin.service;


public interface RedisService {

    /**
     * Redis 任务锁
     *
     * @param id
     * @param expires
     * @return
     */
    boolean lockTaskByRedis(String id, Long expires);

    /**
     * 释放 Redis 任务锁
     *
     * @param key
     * @param expires
     */
    void unlockTaskByRedis(String key, Long expires);

    boolean lockTaskExpiresByRedis(String key, Long expires);

}
